package component

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import component.vm.BaseViewModel

class BookViewModel : BaseViewModel<BookViewModel.ActionAreaIntent>() {

    private val bookData = MutableLiveData<Book>()

    fun getBook(): LiveData<Book> {
        return bookData
    }

    fun setBook(book: Book) {
        bookData.value = book
    }


    interface ActionAreaIntent {
        // 点击事件
        interface ClickIntent : ActionAreaIntent
    }
}